/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package MainPack;


import java.io.IOException;
import java.util.Vector;
import javax.microedition.lcdui.*;
import javax.microedition.lcdui.Graphics;
import MaterialPack.*;
import Supporter.*;
import javax.obex.HeaderSet;
/**
 *
 * @author Van persie
 */
public class AbstractCanvas extends Canvas implements Runnable,CommandListener
{
    protected MainMIDlet main = null;
    
    protected Image background = null;
    //protected Vector buttons = null;
    protected Vector listObjects = null;
    protected int height,width;

    public AbstractCanvas(){}
    public AbstractCanvas(MainMIDlet midlet) {
        main = midlet;
        height = this.getHeight();
        width = this.getWidth();
        
        try{
            LoadResource( );            
        }catch(Exception e){}
        
      //this.sizeChanged(UP, UP);  
    }
    public void Reset()
    {
        
    }
    public void run()
    {
        System.out.println("No ne`");
    }
    public void Pause()
    {
    }
    public void LoadResource() throws IOException {
       
    }
    protected void sizeChanged(int w, int h)
    {
//        width = w;
//        height = h;
//        try{
//            LoadResource( );            
//        }catch(Exception e){}
        
    }
    protected void pointerPressed(int x, int y)
    {

    }
    protected void pointerReleased (int x, int y)
    {
       
    }
    protected void keyPressed(int keyCode)
    {
        
    }

    public void commandAction(Command command, Displayable displayable)
    {
    }
    
    
    public void paint(Graphics g )
    {
         
    }
}
